#!/bin/bash
echo "接收到的所有参数：$*"
echo "接收到的第一个参数：$1"
#n=$2
#if [ $2 -eq '' ]; then
#n='-n 1'
#fi
cd /home/dragon/student_selenium_pytest_allure
#/usr/local/bin/pipenv shell
/home/miniconda3/bin/pdm run pytest -n 6 $1 --options=headless,disable-gpu,no-sandbox --alluredir allure-results --clean-alluredir --reruns 3 --reruns-delay 2
/usr/bin/allure generate allure-results -c -o allure-report
/home/miniconda3/bin/pdm run python utils/fswebhook.py
